package com.mrx.loader.protocol.gzip;

import java.io.IOException;
import java.net.URL;
import java.net.URLConnection;
import java.net.URLStreamHandler;

/**
 * 自定义协议的 {@link URLStreamHandler}
 */
@SuppressWarnings("unused")
public class Handler extends URLStreamHandler {

    @Override
    protected URLConnection openConnection(URL url) throws IOException {
        return new GzipURLConnection(url);
    }

}
